package com.ecoolex.hotel.saas.entity;

import com.ecoolex.framework.common.annotation.Description;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.springframework.lang.NonNull;

public class PresaleCouponExpirydateExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected Integer offset;

    protected Integer rows;

    public PresaleCouponExpirydateExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public PresaleCouponExpirydateExample orderBy(String orderByClause) {
        this.setOrderByClause(orderByClause);
        return this;
    }

    public PresaleCouponExpirydateExample orderBy(String ... orderByClauses) {
        StringBuffer sb = new StringBuffer();
        for (int i = 0; i < orderByClauses.length; i++) {
            sb.append(orderByClauses[i]);
            if (i < orderByClauses.length - 1) {
                sb.append(" , ");
            }
        }
        this.setOrderByClause(sb.toString());
        return this;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria(this);
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
        rows = null;
        offset = null;
    }

    public static Criteria newAndCreateCriteria() {
        PresaleCouponExpirydateExample example = new PresaleCouponExpirydateExample();
        return example.createCriteria();
    }

    public PresaleCouponExpirydateExample when(boolean condition, IExampleWhen then) {
        if (condition) {
            then.example(this);
        }
        return this;
    }

    public PresaleCouponExpirydateExample when(boolean condition, IExampleWhen then, IExampleWhen otherwise) {
        if (condition) {
            then.example(this);
        } else {
            otherwise.example(this);
        }
        return this;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return this.offset;
    }

    public void setRows(Integer rows) {
        this.rows = rows;
    }

    public Integer getRows() {
        return this.rows;
    }

    public PresaleCouponExpirydateExample limit(Integer rows) {
        this.rows = rows;
        return this;
    }

    public PresaleCouponExpirydateExample limit(Integer offset, Integer rows) {
        this.offset = offset;
        this.rows = rows;
        return this;
    }

    public PresaleCouponExpirydateExample page(Integer page, Integer pageSize) {
        this.offset = page * pageSize;
        this.rows = pageSize;
        return this;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andPreCouponIdIsNull() {
            addCriterion("presalecouponexpirydate.PreCouponId is null");
            return (Criteria) this;
        }

        public Criteria andPreCouponIdIsNotNull() {
            addCriterion("presalecouponexpirydate.PreCouponId is not null");
            return (Criteria) this;
        }

        public Criteria andPreCouponIdEqualTo(Integer value) {
            addCriterion("presalecouponexpirydate.PreCouponId =", value, "preCouponId");
            return (Criteria) this;
        }

        public Criteria andPreCouponIdEqualToColumn(PresaleCouponExpirydate.Column column) {
            addCriterion(new StringBuilder("presalecouponexpirydate.PreCouponId = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andPreCouponIdNotEqualTo(Integer value) {
            addCriterion("presalecouponexpirydate.PreCouponId <>", value, "preCouponId");
            return (Criteria) this;
        }

        public Criteria andPreCouponIdNotEqualToColumn(PresaleCouponExpirydate.Column column) {
            addCriterion(new StringBuilder("presalecouponexpirydate.PreCouponId <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andPreCouponIdGreaterThan(Integer value) {
            addCriterion("presalecouponexpirydate.PreCouponId >", value, "preCouponId");
            return (Criteria) this;
        }

        public Criteria andPreCouponIdGreaterThanColumn(PresaleCouponExpirydate.Column column) {
            addCriterion(new StringBuilder("presalecouponexpirydate.PreCouponId > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andPreCouponIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("presalecouponexpirydate.PreCouponId >=", value, "preCouponId");
            return (Criteria) this;
        }

        public Criteria andPreCouponIdGreaterThanOrEqualToColumn(PresaleCouponExpirydate.Column column) {
            addCriterion(new StringBuilder("presalecouponexpirydate.PreCouponId >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andPreCouponIdLessThan(Integer value) {
            addCriterion("presalecouponexpirydate.PreCouponId <", value, "preCouponId");
            return (Criteria) this;
        }

        public Criteria andPreCouponIdLessThanColumn(PresaleCouponExpirydate.Column column) {
            addCriterion(new StringBuilder("presalecouponexpirydate.PreCouponId < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andPreCouponIdLessThanOrEqualTo(Integer value) {
            addCriterion("presalecouponexpirydate.PreCouponId <=", value, "preCouponId");
            return (Criteria) this;
        }

        public Criteria andPreCouponIdLessThanOrEqualToColumn(PresaleCouponExpirydate.Column column) {
            addCriterion(new StringBuilder("presalecouponexpirydate.PreCouponId <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andPreCouponIdIn(List<Integer> values) {
            addCriterion("presalecouponexpirydate.PreCouponId in", values, "preCouponId");
            return (Criteria) this;
        }

        public Criteria andPreCouponIdNotIn(List<Integer> values) {
            addCriterion("presalecouponexpirydate.PreCouponId not in", values, "preCouponId");
            return (Criteria) this;
        }

        public Criteria andPreCouponIdBetween(Integer value1, Integer value2) {
            addCriterion("presalecouponexpirydate.PreCouponId between", value1, value2, "preCouponId");
            return (Criteria) this;
        }

        public Criteria andPreCouponIdNotBetween(Integer value1, Integer value2) {
            addCriterion("presalecouponexpirydate.PreCouponId not between", value1, value2, "preCouponId");
            return (Criteria) this;
        }

        public Criteria andExpirydateStrategyIsNull() {
            addCriterion("presalecouponexpirydate.ExpirydateStrategy is null");
            return (Criteria) this;
        }

        public Criteria andExpirydateStrategyIsNotNull() {
            addCriterion("presalecouponexpirydate.ExpirydateStrategy is not null");
            return (Criteria) this;
        }

        public Criteria andExpirydateStrategyEqualTo(Integer value) {
            addCriterion("presalecouponexpirydate.ExpirydateStrategy =", value, "expirydateStrategy");
            return (Criteria) this;
        }

        public Criteria andExpirydateStrategyEqualToColumn(PresaleCouponExpirydate.Column column) {
            addCriterion(new StringBuilder("presalecouponexpirydate.ExpirydateStrategy = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andExpirydateStrategyNotEqualTo(Integer value) {
            addCriterion("presalecouponexpirydate.ExpirydateStrategy <>", value, "expirydateStrategy");
            return (Criteria) this;
        }

        public Criteria andExpirydateStrategyNotEqualToColumn(PresaleCouponExpirydate.Column column) {
            addCriterion(new StringBuilder("presalecouponexpirydate.ExpirydateStrategy <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andExpirydateStrategyGreaterThan(Integer value) {
            addCriterion("presalecouponexpirydate.ExpirydateStrategy >", value, "expirydateStrategy");
            return (Criteria) this;
        }

        public Criteria andExpirydateStrategyGreaterThanColumn(PresaleCouponExpirydate.Column column) {
            addCriterion(new StringBuilder("presalecouponexpirydate.ExpirydateStrategy > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andExpirydateStrategyGreaterThanOrEqualTo(Integer value) {
            addCriterion("presalecouponexpirydate.ExpirydateStrategy >=", value, "expirydateStrategy");
            return (Criteria) this;
        }

        public Criteria andExpirydateStrategyGreaterThanOrEqualToColumn(PresaleCouponExpirydate.Column column) {
            addCriterion(new StringBuilder("presalecouponexpirydate.ExpirydateStrategy >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andExpirydateStrategyLessThan(Integer value) {
            addCriterion("presalecouponexpirydate.ExpirydateStrategy <", value, "expirydateStrategy");
            return (Criteria) this;
        }

        public Criteria andExpirydateStrategyLessThanColumn(PresaleCouponExpirydate.Column column) {
            addCriterion(new StringBuilder("presalecouponexpirydate.ExpirydateStrategy < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andExpirydateStrategyLessThanOrEqualTo(Integer value) {
            addCriterion("presalecouponexpirydate.ExpirydateStrategy <=", value, "expirydateStrategy");
            return (Criteria) this;
        }

        public Criteria andExpirydateStrategyLessThanOrEqualToColumn(PresaleCouponExpirydate.Column column) {
            addCriterion(new StringBuilder("presalecouponexpirydate.ExpirydateStrategy <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andExpirydateStrategyIn(List<Integer> values) {
            addCriterion("presalecouponexpirydate.ExpirydateStrategy in", values, "expirydateStrategy");
            return (Criteria) this;
        }

        public Criteria andExpirydateStrategyNotIn(List<Integer> values) {
            addCriterion("presalecouponexpirydate.ExpirydateStrategy not in", values, "expirydateStrategy");
            return (Criteria) this;
        }

        public Criteria andExpirydateStrategyBetween(Integer value1, Integer value2) {
            addCriterion("presalecouponexpirydate.ExpirydateStrategy between", value1, value2, "expirydateStrategy");
            return (Criteria) this;
        }

        public Criteria andExpirydateStrategyNotBetween(Integer value1, Integer value2) {
            addCriterion("presalecouponexpirydate.ExpirydateStrategy not between", value1, value2, "expirydateStrategy");
            return (Criteria) this;
        }

        public Criteria andFixedStartExpirydateIsNull() {
            addCriterion("presalecouponexpirydate.FixedStartExpirydate is null");
            return (Criteria) this;
        }

        public Criteria andFixedStartExpirydateIsNotNull() {
            addCriterion("presalecouponexpirydate.FixedStartExpirydate is not null");
            return (Criteria) this;
        }

        public Criteria andFixedStartExpirydateEqualTo(Date value) {
            addCriterion("presalecouponexpirydate.FixedStartExpirydate =", value, "fixedStartExpirydate");
            return (Criteria) this;
        }

        public Criteria andFixedStartExpirydateEqualToColumn(PresaleCouponExpirydate.Column column) {
            addCriterion(new StringBuilder("presalecouponexpirydate.FixedStartExpirydate = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andFixedStartExpirydateNotEqualTo(Date value) {
            addCriterion("presalecouponexpirydate.FixedStartExpirydate <>", value, "fixedStartExpirydate");
            return (Criteria) this;
        }

        public Criteria andFixedStartExpirydateNotEqualToColumn(PresaleCouponExpirydate.Column column) {
            addCriterion(new StringBuilder("presalecouponexpirydate.FixedStartExpirydate <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andFixedStartExpirydateGreaterThan(Date value) {
            addCriterion("presalecouponexpirydate.FixedStartExpirydate >", value, "fixedStartExpirydate");
            return (Criteria) this;
        }

        public Criteria andFixedStartExpirydateGreaterThanColumn(PresaleCouponExpirydate.Column column) {
            addCriterion(new StringBuilder("presalecouponexpirydate.FixedStartExpirydate > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andFixedStartExpirydateGreaterThanOrEqualTo(Date value) {
            addCriterion("presalecouponexpirydate.FixedStartExpirydate >=", value, "fixedStartExpirydate");
            return (Criteria) this;
        }

        public Criteria andFixedStartExpirydateGreaterThanOrEqualToColumn(PresaleCouponExpirydate.Column column) {
            addCriterion(new StringBuilder("presalecouponexpirydate.FixedStartExpirydate >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andFixedStartExpirydateLessThan(Date value) {
            addCriterion("presalecouponexpirydate.FixedStartExpirydate <", value, "fixedStartExpirydate");
            return (Criteria) this;
        }

        public Criteria andFixedStartExpirydateLessThanColumn(PresaleCouponExpirydate.Column column) {
            addCriterion(new StringBuilder("presalecouponexpirydate.FixedStartExpirydate < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andFixedStartExpirydateLessThanOrEqualTo(Date value) {
            addCriterion("presalecouponexpirydate.FixedStartExpirydate <=", value, "fixedStartExpirydate");
            return (Criteria) this;
        }

        public Criteria andFixedStartExpirydateLessThanOrEqualToColumn(PresaleCouponExpirydate.Column column) {
            addCriterion(new StringBuilder("presalecouponexpirydate.FixedStartExpirydate <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andFixedStartExpirydateIn(List<Date> values) {
            addCriterion("presalecouponexpirydate.FixedStartExpirydate in", values, "fixedStartExpirydate");
            return (Criteria) this;
        }

        public Criteria andFixedStartExpirydateNotIn(List<Date> values) {
            addCriterion("presalecouponexpirydate.FixedStartExpirydate not in", values, "fixedStartExpirydate");
            return (Criteria) this;
        }

        public Criteria andFixedStartExpirydateBetween(Date value1, Date value2) {
            addCriterion("presalecouponexpirydate.FixedStartExpirydate between", value1, value2, "fixedStartExpirydate");
            return (Criteria) this;
        }

        public Criteria andFixedStartExpirydateNotBetween(Date value1, Date value2) {
            addCriterion("presalecouponexpirydate.FixedStartExpirydate not between", value1, value2, "fixedStartExpirydate");
            return (Criteria) this;
        }

        public Criteria andFixedEndExpirydateIsNull() {
            addCriterion("presalecouponexpirydate.FixedEndExpirydate is null");
            return (Criteria) this;
        }

        public Criteria andFixedEndExpirydateIsNotNull() {
            addCriterion("presalecouponexpirydate.FixedEndExpirydate is not null");
            return (Criteria) this;
        }

        public Criteria andFixedEndExpirydateEqualTo(Date value) {
            addCriterion("presalecouponexpirydate.FixedEndExpirydate =", value, "fixedEndExpirydate");
            return (Criteria) this;
        }

        public Criteria andFixedEndExpirydateEqualToColumn(PresaleCouponExpirydate.Column column) {
            addCriterion(new StringBuilder("presalecouponexpirydate.FixedEndExpirydate = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andFixedEndExpirydateNotEqualTo(Date value) {
            addCriterion("presalecouponexpirydate.FixedEndExpirydate <>", value, "fixedEndExpirydate");
            return (Criteria) this;
        }

        public Criteria andFixedEndExpirydateNotEqualToColumn(PresaleCouponExpirydate.Column column) {
            addCriterion(new StringBuilder("presalecouponexpirydate.FixedEndExpirydate <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andFixedEndExpirydateGreaterThan(Date value) {
            addCriterion("presalecouponexpirydate.FixedEndExpirydate >", value, "fixedEndExpirydate");
            return (Criteria) this;
        }

        public Criteria andFixedEndExpirydateGreaterThanColumn(PresaleCouponExpirydate.Column column) {
            addCriterion(new StringBuilder("presalecouponexpirydate.FixedEndExpirydate > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andFixedEndExpirydateGreaterThanOrEqualTo(Date value) {
            addCriterion("presalecouponexpirydate.FixedEndExpirydate >=", value, "fixedEndExpirydate");
            return (Criteria) this;
        }

        public Criteria andFixedEndExpirydateGreaterThanOrEqualToColumn(PresaleCouponExpirydate.Column column) {
            addCriterion(new StringBuilder("presalecouponexpirydate.FixedEndExpirydate >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andFixedEndExpirydateLessThan(Date value) {
            addCriterion("presalecouponexpirydate.FixedEndExpirydate <", value, "fixedEndExpirydate");
            return (Criteria) this;
        }

        public Criteria andFixedEndExpirydateLessThanColumn(PresaleCouponExpirydate.Column column) {
            addCriterion(new StringBuilder("presalecouponexpirydate.FixedEndExpirydate < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andFixedEndExpirydateLessThanOrEqualTo(Date value) {
            addCriterion("presalecouponexpirydate.FixedEndExpirydate <=", value, "fixedEndExpirydate");
            return (Criteria) this;
        }

        public Criteria andFixedEndExpirydateLessThanOrEqualToColumn(PresaleCouponExpirydate.Column column) {
            addCriterion(new StringBuilder("presalecouponexpirydate.FixedEndExpirydate <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andFixedEndExpirydateIn(List<Date> values) {
            addCriterion("presalecouponexpirydate.FixedEndExpirydate in", values, "fixedEndExpirydate");
            return (Criteria) this;
        }

        public Criteria andFixedEndExpirydateNotIn(List<Date> values) {
            addCriterion("presalecouponexpirydate.FixedEndExpirydate not in", values, "fixedEndExpirydate");
            return (Criteria) this;
        }

        public Criteria andFixedEndExpirydateBetween(Date value1, Date value2) {
            addCriterion("presalecouponexpirydate.FixedEndExpirydate between", value1, value2, "fixedEndExpirydate");
            return (Criteria) this;
        }

        public Criteria andFixedEndExpirydateNotBetween(Date value1, Date value2) {
            addCriterion("presalecouponexpirydate.FixedEndExpirydate not between", value1, value2, "fixedEndExpirydate");
            return (Criteria) this;
        }

        public Criteria andDynamicExpirydateValueIsNull() {
            addCriterion("presalecouponexpirydate.DynamicExpirydateValue is null");
            return (Criteria) this;
        }

        public Criteria andDynamicExpirydateValueIsNotNull() {
            addCriterion("presalecouponexpirydate.DynamicExpirydateValue is not null");
            return (Criteria) this;
        }

        public Criteria andDynamicExpirydateValueEqualTo(Integer value) {
            addCriterion("presalecouponexpirydate.DynamicExpirydateValue =", value, "dynamicExpirydateValue");
            return (Criteria) this;
        }

        public Criteria andDynamicExpirydateValueEqualToColumn(PresaleCouponExpirydate.Column column) {
            addCriterion(new StringBuilder("presalecouponexpirydate.DynamicExpirydateValue = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDynamicExpirydateValueNotEqualTo(Integer value) {
            addCriterion("presalecouponexpirydate.DynamicExpirydateValue <>", value, "dynamicExpirydateValue");
            return (Criteria) this;
        }

        public Criteria andDynamicExpirydateValueNotEqualToColumn(PresaleCouponExpirydate.Column column) {
            addCriterion(new StringBuilder("presalecouponexpirydate.DynamicExpirydateValue <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDynamicExpirydateValueGreaterThan(Integer value) {
            addCriterion("presalecouponexpirydate.DynamicExpirydateValue >", value, "dynamicExpirydateValue");
            return (Criteria) this;
        }

        public Criteria andDynamicExpirydateValueGreaterThanColumn(PresaleCouponExpirydate.Column column) {
            addCriterion(new StringBuilder("presalecouponexpirydate.DynamicExpirydateValue > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDynamicExpirydateValueGreaterThanOrEqualTo(Integer value) {
            addCriterion("presalecouponexpirydate.DynamicExpirydateValue >=", value, "dynamicExpirydateValue");
            return (Criteria) this;
        }

        public Criteria andDynamicExpirydateValueGreaterThanOrEqualToColumn(PresaleCouponExpirydate.Column column) {
            addCriterion(new StringBuilder("presalecouponexpirydate.DynamicExpirydateValue >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDynamicExpirydateValueLessThan(Integer value) {
            addCriterion("presalecouponexpirydate.DynamicExpirydateValue <", value, "dynamicExpirydateValue");
            return (Criteria) this;
        }

        public Criteria andDynamicExpirydateValueLessThanColumn(PresaleCouponExpirydate.Column column) {
            addCriterion(new StringBuilder("presalecouponexpirydate.DynamicExpirydateValue < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDynamicExpirydateValueLessThanOrEqualTo(Integer value) {
            addCriterion("presalecouponexpirydate.DynamicExpirydateValue <=", value, "dynamicExpirydateValue");
            return (Criteria) this;
        }

        public Criteria andDynamicExpirydateValueLessThanOrEqualToColumn(PresaleCouponExpirydate.Column column) {
            addCriterion(new StringBuilder("presalecouponexpirydate.DynamicExpirydateValue <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDynamicExpirydateValueIn(List<Integer> values) {
            addCriterion("presalecouponexpirydate.DynamicExpirydateValue in", values, "dynamicExpirydateValue");
            return (Criteria) this;
        }

        public Criteria andDynamicExpirydateValueNotIn(List<Integer> values) {
            addCriterion("presalecouponexpirydate.DynamicExpirydateValue not in", values, "dynamicExpirydateValue");
            return (Criteria) this;
        }

        public Criteria andDynamicExpirydateValueBetween(Integer value1, Integer value2) {
            addCriterion("presalecouponexpirydate.DynamicExpirydateValue between", value1, value2, "dynamicExpirydateValue");
            return (Criteria) this;
        }

        public Criteria andDynamicExpirydateValueNotBetween(Integer value1, Integer value2) {
            addCriterion("presalecouponexpirydate.DynamicExpirydateValue not between", value1, value2, "dynamicExpirydateValue");
            return (Criteria) this;
        }

        public Criteria andDeletedIsNull() {
            addCriterion("presalecouponexpirydate.Deleted is null");
            return (Criteria) this;
        }

        public Criteria andDeletedIsNotNull() {
            addCriterion("presalecouponexpirydate.Deleted is not null");
            return (Criteria) this;
        }

        public Criteria andDeletedEqualTo(Boolean value) {
            addCriterion("presalecouponexpirydate.Deleted =", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedEqualToColumn(PresaleCouponExpirydate.Column column) {
            addCriterion(new StringBuilder("presalecouponexpirydate.Deleted = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedNotEqualTo(Boolean value) {
            addCriterion("presalecouponexpirydate.Deleted <>", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotEqualToColumn(PresaleCouponExpirydate.Column column) {
            addCriterion(new StringBuilder("presalecouponexpirydate.Deleted <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThan(Boolean value) {
            addCriterion("presalecouponexpirydate.Deleted >", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanColumn(PresaleCouponExpirydate.Column column) {
            addCriterion(new StringBuilder("presalecouponexpirydate.Deleted > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanOrEqualTo(Boolean value) {
            addCriterion("presalecouponexpirydate.Deleted >=", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanOrEqualToColumn(PresaleCouponExpirydate.Column column) {
            addCriterion(new StringBuilder("presalecouponexpirydate.Deleted >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedLessThan(Boolean value) {
            addCriterion("presalecouponexpirydate.Deleted <", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanColumn(PresaleCouponExpirydate.Column column) {
            addCriterion(new StringBuilder("presalecouponexpirydate.Deleted < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanOrEqualTo(Boolean value) {
            addCriterion("presalecouponexpirydate.Deleted <=", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanOrEqualToColumn(PresaleCouponExpirydate.Column column) {
            addCriterion(new StringBuilder("presalecouponexpirydate.Deleted <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedIn(List<Boolean> values) {
            addCriterion("presalecouponexpirydate.Deleted in", values, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotIn(List<Boolean> values) {
            addCriterion("presalecouponexpirydate.Deleted not in", values, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedBetween(Boolean value1, Boolean value2) {
            addCriterion("presalecouponexpirydate.Deleted between", value1, value2, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotBetween(Boolean value1, Boolean value2) {
            addCriterion("presalecouponexpirydate.Deleted not between", value1, value2, "deleted");
            return (Criteria) this;
        }

        public Criteria andCreateUserIsNull() {
            addCriterion("presalecouponexpirydate.`CreateUser` is null");
            return (Criteria) this;
        }

        public Criteria andCreateUserIsNotNull() {
            addCriterion("presalecouponexpirydate.`CreateUser` is not null");
            return (Criteria) this;
        }

        public Criteria andCreateUserEqualTo(String value) {
            addCriterion("presalecouponexpirydate.`CreateUser` =", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserEqualToColumn(PresaleCouponExpirydate.Column column) {
            addCriterion(new StringBuilder("presalecouponexpirydate.`CreateUser` = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserNotEqualTo(String value) {
            addCriterion("presalecouponexpirydate.`CreateUser` <>", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotEqualToColumn(PresaleCouponExpirydate.Column column) {
            addCriterion(new StringBuilder("presalecouponexpirydate.`CreateUser` <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThan(String value) {
            addCriterion("presalecouponexpirydate.`CreateUser` >", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanColumn(PresaleCouponExpirydate.Column column) {
            addCriterion(new StringBuilder("presalecouponexpirydate.`CreateUser` > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanOrEqualTo(String value) {
            addCriterion("presalecouponexpirydate.`CreateUser` >=", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanOrEqualToColumn(PresaleCouponExpirydate.Column column) {
            addCriterion(new StringBuilder("presalecouponexpirydate.`CreateUser` >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThan(String value) {
            addCriterion("presalecouponexpirydate.`CreateUser` <", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanColumn(PresaleCouponExpirydate.Column column) {
            addCriterion(new StringBuilder("presalecouponexpirydate.`CreateUser` < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanOrEqualTo(String value) {
            addCriterion("presalecouponexpirydate.`CreateUser` <=", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanOrEqualToColumn(PresaleCouponExpirydate.Column column) {
            addCriterion(new StringBuilder("presalecouponexpirydate.`CreateUser` <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserLike(String value) {
            addCriterion("presalecouponexpirydate.`CreateUser` like", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotLike(String value) {
            addCriterion("presalecouponexpirydate.`CreateUser` not like", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserIn(List<String> values) {
            addCriterion("presalecouponexpirydate.`CreateUser` in", values, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotIn(List<String> values) {
            addCriterion("presalecouponexpirydate.`CreateUser` not in", values, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserBetween(String value1, String value2) {
            addCriterion("presalecouponexpirydate.`CreateUser` between", value1, value2, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotBetween(String value1, String value2) {
            addCriterion("presalecouponexpirydate.`CreateUser` not between", value1, value2, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("presalecouponexpirydate.CreateTime is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("presalecouponexpirydate.CreateTime is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("presalecouponexpirydate.CreateTime =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualToColumn(PresaleCouponExpirydate.Column column) {
            addCriterion(new StringBuilder("presalecouponexpirydate.CreateTime = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("presalecouponexpirydate.CreateTime <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualToColumn(PresaleCouponExpirydate.Column column) {
            addCriterion(new StringBuilder("presalecouponexpirydate.CreateTime <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("presalecouponexpirydate.CreateTime >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanColumn(PresaleCouponExpirydate.Column column) {
            addCriterion(new StringBuilder("presalecouponexpirydate.CreateTime > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("presalecouponexpirydate.CreateTime >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualToColumn(PresaleCouponExpirydate.Column column) {
            addCriterion(new StringBuilder("presalecouponexpirydate.CreateTime >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("presalecouponexpirydate.CreateTime <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanColumn(PresaleCouponExpirydate.Column column) {
            addCriterion(new StringBuilder("presalecouponexpirydate.CreateTime < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("presalecouponexpirydate.CreateTime <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualToColumn(PresaleCouponExpirydate.Column column) {
            addCriterion(new StringBuilder("presalecouponexpirydate.CreateTime <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("presalecouponexpirydate.CreateTime in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("presalecouponexpirydate.CreateTime not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("presalecouponexpirydate.CreateTime between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("presalecouponexpirydate.CreateTime not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIsNull() {
            addCriterion("presalecouponexpirydate.UpdateUser is null");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIsNotNull() {
            addCriterion("presalecouponexpirydate.UpdateUser is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateUserEqualTo(String value) {
            addCriterion("presalecouponexpirydate.UpdateUser =", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserEqualToColumn(PresaleCouponExpirydate.Column column) {
            addCriterion(new StringBuilder("presalecouponexpirydate.UpdateUser = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotEqualTo(String value) {
            addCriterion("presalecouponexpirydate.UpdateUser <>", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotEqualToColumn(PresaleCouponExpirydate.Column column) {
            addCriterion(new StringBuilder("presalecouponexpirydate.UpdateUser <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThan(String value) {
            addCriterion("presalecouponexpirydate.UpdateUser >", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThanColumn(PresaleCouponExpirydate.Column column) {
            addCriterion(new StringBuilder("presalecouponexpirydate.UpdateUser > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThanOrEqualTo(String value) {
            addCriterion("presalecouponexpirydate.UpdateUser >=", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThanOrEqualToColumn(PresaleCouponExpirydate.Column column) {
            addCriterion(new StringBuilder("presalecouponexpirydate.UpdateUser >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThan(String value) {
            addCriterion("presalecouponexpirydate.UpdateUser <", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThanColumn(PresaleCouponExpirydate.Column column) {
            addCriterion(new StringBuilder("presalecouponexpirydate.UpdateUser < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThanOrEqualTo(String value) {
            addCriterion("presalecouponexpirydate.UpdateUser <=", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThanOrEqualToColumn(PresaleCouponExpirydate.Column column) {
            addCriterion(new StringBuilder("presalecouponexpirydate.UpdateUser <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserLike(String value) {
            addCriterion("presalecouponexpirydate.UpdateUser like", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotLike(String value) {
            addCriterion("presalecouponexpirydate.UpdateUser not like", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIn(List<String> values) {
            addCriterion("presalecouponexpirydate.UpdateUser in", values, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotIn(List<String> values) {
            addCriterion("presalecouponexpirydate.UpdateUser not in", values, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserBetween(String value1, String value2) {
            addCriterion("presalecouponexpirydate.UpdateUser between", value1, value2, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotBetween(String value1, String value2) {
            addCriterion("presalecouponexpirydate.UpdateUser not between", value1, value2, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("presalecouponexpirydate.UpdateTime is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("presalecouponexpirydate.UpdateTime is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("presalecouponexpirydate.UpdateTime =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualToColumn(PresaleCouponExpirydate.Column column) {
            addCriterion(new StringBuilder("presalecouponexpirydate.UpdateTime = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("presalecouponexpirydate.UpdateTime <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualToColumn(PresaleCouponExpirydate.Column column) {
            addCriterion(new StringBuilder("presalecouponexpirydate.UpdateTime <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("presalecouponexpirydate.UpdateTime >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanColumn(PresaleCouponExpirydate.Column column) {
            addCriterion(new StringBuilder("presalecouponexpirydate.UpdateTime > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("presalecouponexpirydate.UpdateTime >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualToColumn(PresaleCouponExpirydate.Column column) {
            addCriterion(new StringBuilder("presalecouponexpirydate.UpdateTime >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("presalecouponexpirydate.UpdateTime <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanColumn(PresaleCouponExpirydate.Column column) {
            addCriterion(new StringBuilder("presalecouponexpirydate.UpdateTime < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("presalecouponexpirydate.UpdateTime <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualToColumn(PresaleCouponExpirydate.Column column) {
            addCriterion(new StringBuilder("presalecouponexpirydate.UpdateTime <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("presalecouponexpirydate.UpdateTime in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("presalecouponexpirydate.UpdateTime not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("presalecouponexpirydate.UpdateTime between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("presalecouponexpirydate.UpdateTime not between", value1, value2, "updateTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        private PresaleCouponExpirydateExample example;

        protected Criteria(PresaleCouponExpirydateExample example) {
            super();
            this.example = example;
        }

        public PresaleCouponExpirydateExample example() {
            return this.example;
        }

        @Deprecated
        public Criteria andIf(boolean ifAdd, ICriteriaAdd add) {
            if (ifAdd) {
                add.add(this);
            }
            return this;
        }

        public Criteria when(boolean condition, ICriteriaWhen then) {
            if (condition) {
                then.criteria(this);
            }
            return this;
        }

        public Criteria when(boolean condition, ICriteriaWhen then, ICriteriaWhen otherwise) {
            if (condition) {
                then.criteria(this);
            } else {
                otherwise.criteria(this);
            }
            return this;
        }

        public Criteria andLogicalDeleted(boolean deleted) {
            return deleted ? andDeletedEqualTo(PresaleCouponExpirydate.Deleted.IS_DELETED.value()) : andDeletedNotEqualTo(PresaleCouponExpirydate.Deleted.IS_DELETED.value());
        }

        @Deprecated
        public interface ICriteriaAdd {
            Criteria add(Criteria add);
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }

    public interface ICriteriaWhen {
        void criteria(Criteria criteria);
    }

    public interface IExampleWhen {
        void example(com.ecoolex.hotel.saas.entity.PresaleCouponExpirydateExample example);
    }
}